class B(object):

    def __init__(self):
        print "outer"


class A(object):

    class B(object):
        def __init__(self):
            print "inner"

    def __init__(self):
        self.b = B()

    b = B() # without self, LBG tels us that

A()
